package jsyf.oa.entity.crm;

import com.alibaba.fastjson.JSONObject;
import jsyf.oa.ientity.BaseEntity;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable;

@Entity
@Table(name = "T_DIC_EQUIPMENT_BRAND", schema = "oa", catalog = "")

/**

 * @author: @张巨波 @zhangjubo
 * @creat: on 2017/12/18.
 * @since: V1.0.0
 * @see jsyf.oa.web
 */
public class EquipmentBrandEntity extends BaseEntity implements Serializable {

    private String id;

    private String equipmentTypeId;

    private String name;

    private String eName;

    private Integer delFlag;


    public String getId()
    {
        return id;
    }

    public void setId(String id)
    {
        this.id=id;
    }


    public String getEquipmentTypeId()
    {
        return equipmentTypeId;
    }

    public void setEquipmentTypeId(String equipmentTypeId)
    {
        this.equipmentTypeId=equipmentTypeId;
    }

    public String getName()
    {
        return name;
    }

    public void setName(String name)
    {
        this.name=name;
    }

    public String getEName()
    {
        return eName;
    }

    public void setEName(String eName)
    {
        this.eName=eName;
    }

    public Integer getDelFlag()
    {
        return delFlag;
    }

    public void setDelFlag(Integer delFlag)
    {
        this.delFlag=delFlag;
    }

    @Override
    public String getTableName() { return "T_DIC_EQUIPMENT_BRAND"; }
    @Override
    public JSONObject getJSONColumns() {
        JSONObject obj = new JSONObject();
        obj.put("ID","id");
        obj.put("EQUIPMENT_TYPE_ID","equipmentTypeId");
        obj.put("NAME","name");
        obj.put("E_NAME","eName");
        obj.put("DEL_FLAG","delFlag");

        return obj;
    }
    @Override
    public JSONObject getJSONObject() {
        JSONObject obj = new JSONObject();
        obj.put("id",getId());
        obj.put("equipment_type_id",getEquipmentTypeId());
        obj.put("name",getName());
        obj.put("del_flag",getDelFlag());
        return obj;
    }
}
